﻿using System;
using System.Collections.Generic;
using System.Text;

namespace ProcessDB
{
    public class PlayerInfo
    {
        public int ID { get; set; }
        public string Email { get; set; }
        public string Password { get; set; }
        public String NickName { get; set; }
        public int Level { get; set; }
        public int IsOnline { get; set; }
        public List<int> Storage = new List<int>();
        public List<int> Deck = new List<int>();
        public override string ToString()
        {
            return string.Format("{0}|{1}|{2}|{3}", ID, Level, NickName, IsOnline);
            
        }
    }
    public class TableInfo
    {
        public int TableID { get; set; }
        public int PlayerID1 { get; set; }
        public int PlayerID2 { get; set; }
        public string NickName1 { get; set; }
        public string NickName2 { get; set; }
        public int Payment { get; set; }
        public int CardID { get; set; }
        public string Comment { get; set; }
        public string CardName { get; set; }
        public override string ToString()
        {
            return String.Format("{0}|{1}|{2}|{3}|{4}|{5}|{6}|{7}|{8}", TableID, PlayerID1, PlayerID2, NickName1, NickName2, Payment, CardID, CardName, Comment);
        }
    }
    public class RoomInfo
    {
        public int RoomID { get; set; }
        public string Name { get; set; }
        public int CountUser { get; set; }
        public int CountCreater { get; set; }
        public override string ToString()
        {
            return String.Format("{0}|{1}|{2}|{3}", RoomID, Name, CountUser, CountCreater);
        }
    }
    public class CardInfo
    {
        public int ID { get; set; }
        public string Name { get; set; }
        public int Total { get; set; }
    }
    public class ForbiddenInfo
    {
        public int ID { get; set; }
        public int MaxNumber { get; set; }
    }
}
